/*
 * @Author: thl t15945324431@163.com
 * @Date: 2024-01-10 10:18:49
 * @LastEditors: thl t15945324431@163.com
 * @LastEditTime: 2024-01-15 10:39:33
 * @FilePath: \cw_web\gl\src\request\callServicer\serveList.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React from 'react';

// 新增服务
export async function apiAddService(params) {
    return await React.$postJson('/trade/api/b/service/addService', params)
}
//省市区三级联动
export async function apiGetDBAreaList(params) {
    return await React.$post('/management/dbArea/list', params);
}
//服务列表分页
export async function apiServicePage(params) {
    return await React.$postJson('/trade/api/b/service/page', params);
}
//服务列表上下架
export async function apiServiceModifyState(params) {
    return await React.$get('/trade/api/b/service/modifyState', params);
}
//服务列表详情
export async function apiServiceDetail(params) {
    return await React.$get('/trade/api/b/service/detail', params);
}
//服务列表修改
export async function apiEditService(params) {
    return await React.$postJson('/trade/api/b/service/editService', params);
}
//服务列表-选择地址
export async function apiAreaGetAreaTree(params) {
    return await React.$get('/manage/api/b/area/getAreaTree');
}
